<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue 指令-v-bind</title>
  <link rel="icon" href="D:\A~shcool_study\vue_gittee\bitbug_favicon.ico" type="image/x-icon">
  <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <img v-bind:src="imgurl" v-bind:title="msg" alt="">
    <p>
     <!-- 简易写法 -->
      <img :src="imgurl2" v-bind:title="msg" alt="" >
    </p>
  </div>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        imgurl: './imgs/10-01.png',
        msg: 'hello,bozai',
        imgurl2: './imgs/10-02.png'
      }
    })

  </script>
</body>

</html>